import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/internal/Observable';
import { registerData} from '../date/registerdate';

@Injectable({
  providedIn: 'root'
})
export class registerService {

  constructor(private http:HttpClient) { }

  public register(registerInfo:registerData):Observable<any>{
    return this.http.post<any>('http://localhost:8080/userregister',registerInfo)
    // this.http.get<any>('http://localhost:8080/userlogin');
  }

}
